package s63.kong.shop.modules.token;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class TokenConfig {

    @Bean
    @ConditionalOnProperty(prefix = "shop",name = "token",havingValue = "jwt")
    public JwtTokenService jwtTokenService(){
        System.out.println("JwtTokenService实例化了");
        return new JwtTokenService();
    }
}
